<div ng-include="sys_html('common/head')"></div>
<div class="fui-page fui-page-current page-goods-list">
<div class="fui-content" style="top:0">
<div class="fui-header searchtop">
		<div class="fui-header-left" style="top: 0.5rem;">
			<img class="leftlogo" ng-src="{{tomedia(pagedata.pluginset.logo) || '../core/resource/images/nopic.jpg'}}"/>
		</div>
		<div class="title">
			<form method="post">
					<div class="searchbar searchbar-active" style="margin-left:1.6rem">
					<div class="search-input">
						<i id="searchsub" class="icon jinyunicon icon-search" ng-click="access(pagedata.op,made_query(pagedata.params))" style="font-size: 1.0rem;"></i>
						<input type="search" id="search" ng-model="pagedata.params.keyword" placeholder="输入关键字..." value="keyword">
					</div>
					</div>
			</form>
		</div>
		<div class="fui-header-right" data-nomenu="true">
			<a href="javascript:;"><i class="icon jinyunicon icon-saoyisao2" id="scancode" style="font-size: 1.0rem;"></i></a>
		</div>
</div>
<script language="javascript">
wx.ready(function () {
	$("#scancode").on('click',function () {
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
							//无需返回结果！					
						}
			});
	});
});
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" ng-if="pagedata.pluginset.lunbomenu" style="margin-top:2.2rem">
	<div class="carousel-inner" role="listbox" style="height:8rem">
		<div ng-repeat="nav in pagedata.pluginset.lunbomenu" ng-class="{'item':1, 'active':$index==0}" >
			<a href="{{nav.url}}">
				<img ng-src="{{tomedia(nav.image) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
	<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
		<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.pluginset.lunbomenu" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
	</div>
</div>
<div ng-if="pagedata.pluginset.headmenu.length>0" class="fui-icon-group noborder col-4 radius" style="background: #ffffff">
    <a class="fui-icon-col external" ng-repeat="item in pagedata.pluginset.headmenu" href="javascript:;" ng-click="access_json(item.action)" data-nocache="true">
            <div class="icon"><img src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" style="margin:auto"></div>
            <div class="text" style="color: #666666;">{{item.name}}</div>
    </a>
</div>
<div class="fui-cube" ng-if="pagedata.pluginset.imagemenu.length>0">
			<img ng-if="pagedata.pluginset.imagemenu.length == 1" ng-src="{{tomedia(pagedata.pluginset.imagemenu[0].image)}}" href="{{pagedata.pluginset.imagemenu[0].url}}" />
			<div class="fui-cube-left" ng-if="pagedata.pluginset.imagemenu.length > 1">
				<img ng-src="{{tomedia(pagedata.pluginset.imagemenu[0].image)}}" href="{{pagedata.pluginset.imagemenu[0].url}}" />
			</div>
			<div class="fui-cube-right" ng-if="pagedata.pluginset.imagemenu.length > 1">
					<img ng-if="pagedata.pluginset.imagemenu.length == 2" ng-src="{{tomedia(pagedata.pluginset.imagemenu[1].image)}}" href="{{pagedata.pluginset.imagemenu[1].url}}" />
					<div class="fui-cube-right1" ng-if="pagedata.pluginset.imagemenu.length > 2">
						<img ng-src="{{tomedia(pagedata.pluginset.imagemenu[1].image)}}" href="{{pagedata.pluginset.imagemenu[1].url}}" />
					</div>
					<div class="fui-cube-right2" ng-if="pagedata.pluginset.imagemenu.length > 2">
							<img ng-if="pagedata.pluginset.imagemenu.length == 3" ng-src="{{tomedia(pagedata.pluginset.imagemenu[2].image)}}" href="{{pagedata.pluginset.imagemenu[2].url}}" />
							<div class="left" ng-if="pagedata.pluginset.imagemenu.length > 3">
								<img ng-src="{{tomedia(pagedata.pluginset.imagemenu[2].image)}}" href="{{pagedata.pluginset.imagemenu[2].url}}" />
							</div>
							<div class="right" ng-if="pagedata.pluginset.imagemenu.length == 4">
								<img ng-src="{{tomedia(pagedata.pluginset.imagemenu[3].image)}}" href="{{pagedata.pluginset.imagemenu[3].url}}" />
							</div>
					</div>
			</div>
</div>
<div class="g-flexview pages" style="height:auto" id="page1">
    <!--滚动区域-->
    <div class="g-scrollview">
    <!--图标导航-->
    <!--边看边买-->
   <div class="slider" style="margin-top: 0.2rem"> 
   <div class="index_list_title"> 
    <span class="intro_title"><img src="../addons/jy_jdk/custom/templates/mobile/img/sxt.png" class="stylesimg" /><i>实时榜单</i> <em></em></span> 
    <span class="index_list_eachall" style="padding-right:5px"> <a ng-click="access_json('/searchlist/')"><i class="icon icon-icon-test"></i></a> </span> 
   </div> 
   <div class="commodityinfo"> 
    <div class="commoditylist"  id="good-scroll1"> 
     <div id="goods">
      <div class="contain-product relative">
        <ul class="goods-list list_box clear" id="goodlist">
           <div ng-repeat="item in pagedata.hot" class="commoditys" ng-click="access_json('/detail//id='+item.id)"> 
		
		  <img src="{{tomedia(item.imgUrl)}}" class="styleimg" /> 
		  <p class="commodityname">{{item.goodsName}}</p> 
		  <label class="labelstyle"><!--<span>￥{{item.wlPrice_after}}</span><i>￥{{item.wlUnitPrice}}</i>--><span>￥{{item.wlUnitPrice}}</span></label> 
		  
				<label ng-if="pagedata.set.subsidy && pagedata.set.isopen_subsidy ||   pagedata.member.type==1" class="Subsidy"><span>约赚</span><br/>￥
				pagedata.wlPrice_after*wlCommissionShare*subsidy/100*0.9
				</label>
		<!--  <div class="voucher"> 
		   <label>领券</label> 
		   <span>立减{{item.discount}}元</span> 
		  </div> -->
		 </div>
        </ul>
      </div>
	</div>
    </div> 
   </div> 
  </div> 
        <!--广告-->
        <div  ng-repeat="menu in pagedata.ad_menu" class="coupons" style="margin:0">
            <a href="{{menu.url}}" style="display:block">
            	<img height="100" width="100" src="{{tomedia(menu.image)}}" alt="">
            </a>
        </div>
        <!--今日精选-->
        <div class="slider" style="margin-top: 0.2rem"> 
		   <div class="index_list_title"> 
			<span class="intro_title"><img src="../addons/jy_jdk/custom/templates/mobile/img/index-today2.png" class="stylesimg" /><i>今日上新</i> <em></em></span> 
			<span class="index_list_eachall" style="padding-right:5px"> <a ng-click="access_json('/searchlist/')"><i class="icon icon-icon-test"></i></a> </span> 
		   </div> 
		   <div class="index_list_title" style="border-bottom:1px solid #f2f2f2;"> 
					<span class="intro_title goindexmain">
					<img src="../addons/jy_jdk/custom/templates/mobile/img/index-new4.png" class="stylesimg">
					<i>猜你喜欢</i> <em>实时推荐适合您的宝贝</em>
					</span> 
			</div>
		   <div class="commodityinfo"> 
			<div class="commoditylist" id="good-scroll2"> 
			 <div id="goods">
			  <div class="contain-product relative">
				<ul class="goods-list list_box clear" id="goodlist" style="margin-top:0">
				   <div ng-repeat="item in pagedata.new" class="commoditys" ng-click="access_json('/detail//id='+item.id)"> 
					  <img src="{{tomedia(item.imgUrl)}}" class="styleimg" /> 
					  <p class="commodityname">{{item.goodsName}}</p> 
	 <label class="labelstyle"><!--<span>￥{{item.wlPrice_after}}</span><i>￥{{item.wlUnitPrice}}</i>--><span>￥{{item.wlUnitPrice}}</span></label> 
		  
				<label ng-if="pagedata.set.subsidy && pagedata.set.isopen_subsidy ||   pagedata.member.type==1" class="Subsidy"><span>约赚</span><br/>￥
				pagedata.wlPrice_after*wlCommissionShare*subsidy/100*0.9
				</label>
		<!--  <div class="voucher"> 
		   <label>领券</label> 
		   <span>立减{{item.discount}}元</span> 
		  </div> -->
					</div>
				</ul>
			  </div>
			</div>
			</div> 
		   </div> 
		   <div id="nodata" class="" ><div class="dropload-load">没有更多了</div></div>
		  </div>
</div> 
</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>      